package edu.hawaii.duedates;

import static org.junit.Assert.assertTrue;
import org.junit.Test;

/**
 * To test the Email.java class works or not.
 * 
 * @author Creighton Okada
 * @author Ka Hung Phillip Lau
 */
public class TestEmail {

  /**
   * Test the send method.
   */
  @Test
  public void testSendMethod() {
    Email testMail = new Email();
    String toAddr = "duedates-red-discuss@googlegroups.com";
    //String host = "smtp-server.hawaii.rr.com";
    String host = "mail.hawaii.edu";
    assertTrue("Test Send Method", testMail.send(host, toAddr,
        "Testing the Send Method. This is only a test."));
  }
}
